package com.duoketech.service.weixin;

import com.duoketech.model.modulepic.ModulePic;

import java.util.List;

public class WxModulePicService {

    public static WxModulePicService ME = new WxModulePicService();
    public List<ModulePic> queryModulePicBy(int type, int limit ){

        String sql="select * from "+ModulePic.dao.tableName()+" where type=? and status=? order by sort desc limit ?";
        return ModulePic.dao.find(sql,type,ModulePic.STATUS_NORMAL,limit);
    }

}
